package org.attached.user.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author Mr.古
 * @since 2018-05-05
 */
@TableName("chat_user")
@Getter
@Setter
public class ChatUser extends Model<ChatUser> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String userId;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 密码
     */
    private String userPassWord;
    /**
     * 0=男,1=女
     */
    private Integer userGender;
    /**
     * 年龄
     */
    private Integer userAge;
    /**
     * 是否在线(0=下线,1=上线)
     */
    private Integer isOnLine;
    /**
     * 用户问题ID
     */
    private Integer userCpId;
    /**
     * 用户问题答案
     */
    private String cupCpAnswer;
    /**
     * 最近登陆时间
     */
    private Date loginTime;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "ChatUser{" +
        ", userId=" + userId +
        ", userName=" + userName +
        ", userPassWord=" + userPassWord +
        ", userGender=" + userGender +
        ", userAge=" + userAge +
        ", isOnLine=" + isOnLine +
        ", userCpId=" + userCpId +
        ", cupCpAnswer=" + cupCpAnswer +
        ", loginTime=" + loginTime +
        ", createTime=" + createTime +
        ", modifyTime=" + modifyTime +
        "}";
    }
}
